<div ng-include src="'tpl/public/header.html'"></div>
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li><a href="#/fa/blacklist">黑名单列表</a></li>
    <li class="active">详情</li>
  </ol>
  <div class="row">
    <div class="blackview-box col-xs-7">
      <li><label>登录名</label>{{detail.loginName}}</li>
      <li><label>昵称</label>{{detail.name}}</li>
      <li><label>手机号</label>{{detail.mobile}}</li>
      <li><label>注册时间</label>{{detail.registerTime | date:'yyyy-MM-dd'}}</li>
      <li><label>最后拉黑时间</label>{{detail.lastBlackTime | date:'yyyy-MM-dd'}}</li>
      <li><label>拉黑记录</label></li>
      <li>
        <ul class="box">
          <table class="table table-condensed">
            <tr ng-repeat="item in blackHistorys"><td width="100">{{item.createDate | date:'yyyy-MM-dd'}}:</td><td>{{item.remark}}</td></tr>
          </table>
        </ul>
      </li>
      <li><label>移除记录</label></li>
      <li>
        <ul class="box">
          <table class="table table-condensed">
            <tr ng-repeat="item in whiteHistorys"><td width="100">{{item.createDate | date:'yyyy-MM-dd'}}:</td><td>{{item.remark}}</td></tr>
          </table>
        </ul>
      </li>
      <div class="mt-10 btn btn-primary" ng-click="showDeleteForm()">移除黑名单</div>
    </div>
    <form class="col-xs-5 form-horizontal" role="form" name="form" novalidate ng-submit="blackDelete()" ng-show="showDeleteFormFlag">
      <div class="form-group" ng-class="{'has-error':form.remark.$invalid}">
        <label class="col-sm-2 control-label">
          <span class="required">*</span>
          移除说明
        </label>
        <div class="col-sm-6">
          <textarea class="form-control" autocomplete="off" name="remark" ng-model="black.remark" required="required" placeholder="移除说明" style="height:100px;"></textarea>
        </div>
      </div>

      <div class="form-group" ng-class="{'has-error':form.pFullName.$invalid}">
        <label class="col-sm-2 control-label"> </label>
        <div class="col-sm-6">
          <input class="btn btn-primary" type="submit" value="保存" />
        </div>
      </div>
    </form>
  </div>
</div>
